<%- include header %>
<% arts.forEach(function(art) {%>
	<div class="article">
		<a href="/u/<%= art.articleDetail[0].author %>/<%= art.arcId %>">
			<h1><%= art.articleDetail[0].title %></h1>
		</a>
		<p>
			<span class="author">
				<span class="text-bold">报名者: </span>
				<a href="/u/<%= art.userDetail[0].username%>"><%= art.userDetail[0].username %></a>
				<!-- <%= art.author %> -->
			</span> |

			<span class="create-time">
				<span class="text-bold">时间： </span>
				<%= moment(art.createTime).locale('zh-cn').format('LL HH:mm:ss')%>
			</span>
		</p>		
        <% if (user) {%>
		    <div class="control">
		       	<a href="/remove2/<%= art._id%>" class="pull-right remove">删除</a>
		    </div>
		<%}%>
	</div>

<% }); %>

<%- include footer %>
